package com.ljy.jymail.authserver.Feign;


import com.ljy.common.utils.R;
import com.ljy.jymail.authserver.vo.SocialUser;
import com.ljy.jymail.authserver.vo.UserLoginVo;
import com.ljy.jymail.authserver.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("jymail-member")
public interface MemberFeignService {


    @PostMapping("/member/member/regist")
    R register(@RequestBody UserRegistVo vo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo vo);

    /*
    * 判断社交用户是否第一次登录
    * */
    @PostMapping("/member/member/oauth2/login")
    R oauthLogin(@RequestBody SocialUser socialUser);
}
